<%@ page import="ssm.pojo.User" %>
<%--
  Created by IntelliJ IDEA.
  User: yuweimei
  Date: 2017/6/7
  Time: 10:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=GBK" language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<%response.setCharacterEncoding("utf-8");%>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <%
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
                + path + "/";
        System.out.println(basePath);
    %>
    <link rel="stylesheet" type="text/css" href="<%=basePath%>resources/css/student_add.css">
</head>
<body>
<a href="users" style="text-decoration: none;color: white;font-size: 20px"><img src="../resources/imgs/back.png"
style="width: 20px;height: 20px">返回学生列表</a>
<sf:form method="post" Style="margin-left: 20px" modelAttribute="user">
    <table>
        <tr>
            <td>学生学号:<sf:input type="text" path="userId"/></td>
            <br/>
            <td>姓名:<sf:input type="text" path="username"/></td>
            <br/>
        </tr>
        <tr>
            <td>密码:<sf:input type="password" path="password"/></td>
            <br/>
            <td>个人介绍:<sf:input type="text" path="description"/></td>
            <br/>
        </tr>
    </table>
    <div style="width: 250px;margin: 0 auto;margin-top: 30px">
        <input type="submit" value="添加"
               style="width: 100px;height: 30px;color: white;background:#58958d;border: none;font-size: 20px;border-radius: 5px">
        <input type="reset" value="重置"
               style="width: 100px;height: 30px;color: white;background:#58958d;border: none;font-size: 20px;margin-left: 20px;border-radius: 5px">
    </div>
</sf:form>
${error}
</body>
</html>
